/*
* INSANE - Interactive Structural Analysis Environment
*
* Copyright (C) 2003-2005
* Universidade Federal de Minas Gerais
* Escola de Engenharia
* Departamento de Engenharia de Estruturas
* 
* Author's email :    insane@dees.ufmg.br
* Author's website :  http://www.dees.ufmg.br/insane
* 
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/
package br.ufmg.dees.insane.model.disc.element;

import java.util.ArrayList;

import br.ufmg.dees.insane.model.disc.parametricintegration.PIL2;
import br.ufmg.dees.insane.model.disc.parametricintegration.PIT3;
import br.ufmg.dees.insane.model.disc.parametricintegration.PITetra4;
import br.ufmg.dees.insane.model.disc.parametricintegration.ParametricIntegration;
import br.ufmg.dees.insane.model.disc.shape.Shape;

/**
*A class representing a tetrahedral parametric element Tetra4.
*
*@author Lucas, Marcelo & Pitangueira, Roque
*@version 1.0
*@since September 2004
*/

public class ElmTetra4 extends Tetrahedral
{
	private final static long serialVersionUID = 1L;
	
//********************************************************************************
	
	/** Constructs an tetrahedral parametric element Tetra4 and set its shape.*/
	public ElmTetra4(Shape shp)
	{
		equations = new int[24];
		this.setShape(shp);
	}
	
//********************************************************************************
	
	/** Return the ParametricIntegration object related to the line loads for this ElmTetra4
	*@return PIL2 The ParametricIntegration object related to the line loads for this ElmTetra4.
	*/
	public ParametricIntegration getLineEqLoad()
	{
		return (new PIL2());
	}
	
//********************************************************************************
	
	/** Return the ParametricIntegration object related to the area loads for this ElmTetra4
	*/
	protected ParametricIntegration getAreaEqLoad()
	{
		return (new PIT3());
	}
	
//********************************************************************************
	
	/** Return the ParametricIntegration object related to the volume loads for this ElmTetra4
	*@return  The ParametricIntegration object related to the volume loads for this ElmTetra4.
	*/
	protected ParametricIntegration getVolumeEqLoad()
	{
		return (new PITetra4());
	}
	
//********************************************************************************
	
	/** Return a ArrayList with PointForces representing the equivalent nodal load.
	*The utility of this method is receive the ParametricIntegration object and select its apropriated integration type method.
	*@return The ArrayList with PointForces representing the equivalent nodal load.
	*/
	protected ArrayList getIntegralValues(ParametricIntegration a)
	{
		return (a.getIntegralF());
	}
	
//********************************************************************************

}
